package cn.itsource.base.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class BaseQuery {
    //当前页
    private Integer currentPage=1;
    //页数
    private Integer pageSize = 5;
    //开始页
    public Integer getBeginPage(){
        return (this.currentPage-1)*this.pageSize;
    }

}
